package com.wish.wishhouse_foreclosure.enums;
/**
 *
 * @Title: ContractNoType
 * @Description: 合同编号类型
 * @author zhangxurui
 * @date 2018年4月21日 上午10:59:41
 */
public enum ContractNoType {

	SHOUFANGHETONG("SFHT",1),
	CHUFANGHET("CFHT",2),
	SHOUFANGXIEYI("SFXY",3),
	CHUFANGXIEYI("CFXY",4),
	SHOUKUANJIHUA("SKJH",5),
	FUKUANJIHUA("FKJH",6),
	ZHIFUDINGDAN("ZFDD",7),
	CHUFANGJIEYUE("CFJY",8),
	CHONGZHI("CZDD",9),       // 充值订单
	TIXIAN("TXDD",10);        // 提现订单

	private String name;
	private int index;

	private ContractNoType(String name, int index) {
		this.name = name;
		this.index = index;
	}
	public static String getName(int index){
		for (ContractNoType c : ContractNoType.values()) {
			if(c.getIndex() == index){
				return c.name;
			}
		}
		return null;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}

}
